Check if inherited?

Hi all,

i search a method to check if the "checkbox"(inheritance) in access rights ( of modules or projects) is true or false.

Something like getInherit() or isInherited()

 

Thanks..

 

 

 


meinhana - Wed Oct 21 07:46:28 EDT 2015

Re: Check if inherited?
meinhana - Thu Oct 22 05:41:37 EDT 2015

I have found what i was looking for...

Item parentItem
string itemType = type(parentItem)
if(itemType == "Formal")
{
    Accessrec ar
    for ar in all parentItem do 
    {
        bool(isInherit)
        {
            isAccessInherited(parentItem, isInherit)
        }
        if(isInherit)
        {
            //Yes
            //Do something
        }
        else
        {
            //Nope
        }
    }
}